package com.liyuxiang.feign.service;

import com.liyuxiang.feign.client.DeptClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: liyuxiang
 * @Date: 2025/8/22 10:59
 * @Description: TODO
 */
@Service
public class DeptService {
    private static final Logger logger = LoggerFactory.getLogger(DeptService.class);
    @Autowired
    DeptClient deptClient;

    @Tool(description = "根据科室名称获取科室详情")
    public void getDeptDetailByDeptName(@ToolParam(description = "科室名称") String deptName) {
        logger.info("科室名称 {}", deptName);
        deptClient.getDeptDetailByDeptName(deptName);
    }
}
